package com.cloudkinto.service.user.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author zhangyy
 * @date 2020/4/18 16:58
 * @description:
 */
@Data
public class UserBuildReq {
    /**
     * 账号
     */
    @NotBlank(message = "pls.input.account")
    @Length(min = 6,max = 20,message = "account.length.1-20")
    private String userAccount;

    /**
     * 用户名
     */
    @NotNull(message = "pls.input.username")
    @Length(min = 1,max = 20,message = "username.length.1-20")
    private String userName;

    /**
     * 密码
     */
    @NotBlank(message = "pls.input.password")
    @Length(min = 6,max = 20 ,message = "password.length.1-20")
    private String userPassword;

    @NotNull(message = "pls.choose.role")
    private Long roleId;

    private String userMail;

    @NotBlank(message = "pls.input.phone")
    private String userPhone;
}
